import request from '@/util/request';

export const getAssetsType = function(param){
	var url = '/staff/getAssetsType';
	return request({
		method: 'post',
		url: url,
		data: param
	});
}

export const getAssetsLogList = function(param){
	var url = '/staff/getAssetsLogList';
	return request({
		method: 'post',
		url: url,
		data: param
	});
}

export const getAssets = function(param){
	var url = '/staff/getAssets';
	return request({
		method: 'post',
		url: url,
		data: param
	});
}

export const getAssetsData = function(param){
	var url = '/staff/getAssetsData';
	return request({
		method: 'post',
		url: url,
		data: param
	});
}

export const assetsExamine = function(param){
	var url = '/staff/assetsExamine';
	return request({
		method: 'post',
		url: url,
		data: param
	});
}

export const borrow = function(param){
	var url = '/staff/borrow';
	return request({
		method: 'post',
		url: url,
		data: param
	});
}

export const purchase = function(param){
	var url = '/staff/purchase';
	return request({
		method: 'post',
		url: url,
		data: param
	});
}

export const receive = function(param){
	var url = '/staff/receive';
	return request({
		method: 'post',
		url: url,
		data: param
	});
}

export const getAssetsInOutLog = function(param){
	var url = '/staff/getAssetsInOutLog';
	return request({
		method: 'post',
		url: url,
		data: param
	});
}

export const getAssetsStatic = function(param){
	var url = '/staff/getAssetsStatic';
	return request({
		method: 'post',
		url: url,
		data: param
	});
}

export const getAssetsReport = function(param){
	var url = '/staff/getAssetsReport';
	return request({
		method: 'post',
		url: url,
		data: param
	});
}

export const getMyAssetsInOutLog = function(param){
	var url = '/staff/getMyAssetsInOutLog';
	return request({
		method: 'post',
		url: url,
		data: param
	});
}

export const revert = function(param){
	var url = '/staff/revert';
	return request({
		method: 'post',
		url: url,
		data: param
	});
}

export const approve = function(param){
	var url = '/staff/approve';
	return request({
		method: 'post',
		url: url,
		data: param
	});
}

export const storehouseStatic = function(param){
	var url = '/staff/storehouseStatic';
	return request({
		method: 'post',
		url: url,
		data: param
	});
}